package com.flyone.fuxiao.model.vo;

import com.flyone.fuxiao.model.entity.ChatHistory;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 历史记录表
 */
@Data
public class ChatHistoryVO implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * token
     */
    private String token;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 提示词
     */
    private String prompt;

    /**
     * 回复
     */
    private String choice;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public ChatHistoryVO() {
    }

    public ChatHistoryVO(ChatHistory chatHistory) {
        BeanUtils.copyProperties(chatHistory, this);
    }
}